package Student;

public class StudentUtil {
    private StudentUtil(){
        //私有化构造方法
    }
    public static int getMaxAgeStudent(Student[] stu) {
        int max = 0;
        for(int i = 0;i<stu.length;++i){
            int tmp = stu[i].getAge();

            max = tmp>max?stu[i].getAge():max;
        }

        return max;
    }
}
